package com.tsxy.mapper;

import com.tsxy.controller.administrator.BookSortController;
import com.tsxy.entity.BookSort;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface BookSortMapper {

    public List<BookSort> getAll();

    public BookSort selectByParent(Integer pid);

    @Select({"select name from book_sort where id = #{bookSortId}"})
    String getNameById(Integer bookSortId);
}
